fix certain parameters during curve fit python lambda

97

def func(x,a,b):
   return a*x*x + b

for b in xrange(10):
   popt,pcov = curve_fit(lambda x, a: func(x, a, b), x1, x2)

Comments

Submit
0 Comments